package org.com.yz.dubbo.web.impl;

import org.com.yz.common.util.MyLog;
import org.com.yz.dal.dao.mapper.DepositTransactionMapper;
import org.com.yz.dal.dao.model.DepositTransaction;
import org.com.yz.dubbo.web.service.CheckTransService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@org.springframework.stereotype.Service
public class CheckTransServiceImpl implements CheckTransService {

    private static final MyLog _log = MyLog.getLog(CheckTransServiceImpl.class);

    @Autowired
    private DepositTransactionMapper depositTransactionMapper;


    @Override
    public boolean getTransNo(String transNo, String mchNo) {
        DepositTransaction ds = new DepositTransaction();
        ds.setMchNo(mchNo);
        ds.setOutTransNo(transNo);
        List<DepositTransaction> list = depositTransactionMapper.selectDepositTransaction(ds);
        if (list.size() > 0) {
            return true;
        }
        return false;
    }
}
